# GnuMake  libyaml

CC		= dmc
LIBR		= lib
CFLAG	=  -I. -c -DYAML_DECLARE_STATIC=1 

YAML_LIB		= yaml.lib
ALL_OBJ		= $(patsubst %.c, %.obj, $(wildcard *.c))

ALL: $(YAML_LIB)

%.obj: %.c 
	$(CC) $(CFLAG)  $^ -o$@

$(YAML_LIB) : $(ALL_OBJ)
	$(LIBR) -c $@ $^

clean:
	del /S /Q *.obj *.def *.map
